babl: speed up trc dispatch
authorØyvind Kolås <pippin@gimp.org>
Wed, 30 Aug 2017 15:09:28 +0000 (17:09 +0200)
committerØyvind Kolås <pippin@gimp.org>
Wed, 30 Aug 2017 15:09:31 +0000 (17:09 +0200)
commitbf92fa0a974755d510456b8425c32b4cdb759671
treedfb91e681af9fcc6320f5424c7e1928acb1416b3
parent3c230ba16802a37a8285719ba83bd9be42f13a60
babl: speed up trc dispatch

By splitting the core computation done by the TRC down to callbacks of
different types, that all optionally can use the provided trc object.  This way
we can move the conditional for the polymorphism out of loops. The higher level
API of using the TRC still works - and is also accelerated by this change.
babl/babl-fish-path.c
babl/babl-fish.c
babl/babl-trc.c
babl/babl-trc.h